package com.jianxiu.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.jianxiu.bean.SysConfig;


/**
 * Created by qiao on 2017/5/11.
 */
@Mapper
public interface SysConfigMapper {
    List<SysConfig> listByType(@Param("type") String type);

    List<SysConfig> list(Map<String, Object> sp);

    int count(Map<String, Object> sp);

    SysConfig get(@Param("id") Long id);

    int update(SysConfig sysConfig);

    int delete(Long id);

    int create(SysConfig sysConfig);

    String selectByTypeName(@Param("type") String type, @Param("title") String title);

    List<SysConfig> listByTitle(@Param("title") String title);
}
